package com.houtai.dao;


import com.houtai.bean.dto.avtivity.TdActivityListDto;
import com.houtai.bean.vo.activity.TdActivityDetail;
import com.houtai.bean.vo.activity.TdActivityList;
import com.houtai.bean.vo.activity.UserActivityList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdActivityDao {
    /**
     * @Purpose   查找活动列表
     * @param     TdActivityListDto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityList>
     */
    List<TdActivityList> findTdActivityList(TdActivityListDto TdActivityListDto);
 
    /**
     * @Purpose   查找活动详情
     * @param     activity_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    TdActivityDetail
     */
    TdActivityDetail findTdActivityDetail(@Param("activity_id")int activity_id);
    /**
     * @Purpose:    更新评论数量
     * @param:      user
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdActivityCommentsSize(TdActivityDetail TdActivityDetail);
    /**
     * @Purpose   查找活动列表
     * @param     user_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<UserActivityList>
     */
    List<UserActivityList> findUserActivityList(@Param("user_id")int user_id);
}
